﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../Content/js/angular1.2.13.js"></script>
</head>
<body ng-app="app" ng-controller="DemoController">
    转为大写:
    <input type="text" ng-model="a" />
    {{a|uppercase}}

    <hr />
    ControllerFilter:
    <input type="text" ng-model="name" />
    <script>
        angular.module('app', [])
            .controller('DemoController', /*['$scope', '$filter',*/
                function ($scope, $filter) {
                    $scope.name = $filter('lowercase')('Ari');
                    $scope.today = new Date();
                }
        //]
        )
        //取消注释部分效果相同。
    </script>
    <hr />
    2位小数：
    {{123.456789|number:2}}
    <hr />
    货币：
    {{123|currency}}
    <hr />
    日期：<br />
    Medium: {{today|date:'medium'}}<br />
    Sort:{{today|date:'short'}}<br/>
    FullDate:{{today|date:'fullDate'}}<br/>
    LongDate:{{today|date:'longDate'}}<br/>
    MediumDate:{{today|date:'mediumDate'}}<br/>
    ShortDate:{{today|date:'shortDate'}}<br/>
    MediumTime:{{today|date:'mediumDate'}} <br/>
    SortDate:{{today|date:'shortDate'}}<br/>
    MediumTime:{{today|date:'mediumTime'}}<br/>
    ShortTime:{{today|date:'shortTime'}}<br/>
    yyyy-MM-dd:{{today|date:'yyyy-MM-dd'}}
    <hr/>
    


</body>
</html>
